
<div title="Back to My Profile" id="backlink">
  <p>
    <a class="alertLink" href="<?php echo FRONT_SITE_URL;?>user/profile">Back to My Profile</a>
  </p>
  <a href="<?php echo FRONT_SITE_URL;?>user/profile"><img border="0" src="<?php echo FRONT_SITE_URL ?>www/images/images1/backarrow.png"></a>
</div>
<div id="PopBlockNotification" style="display: none; background-color: yellow; font-size: 9pt; text-align: center; padding: 3px; margin-bottom: 4px;">
  <div style="width: 760px;">
    <table cellspacing="0" cellpadding="3" border="0" align="center">
      <tbody><tr>
          <td>
            <img alt="!" src="<?php echo FRONT_SITE_URL ?>www/images/images1/animatedexclamation.gif">
          </td>
          <td align="center">
            Your popup blocker stopped you from chatting with a member. <a onclick="popNewICWindow();" href="javascript:void(0);">click here</a> to open the window<br>
            <a href="#help">Click here</a> to learn how to disable your popup blocker on BBPeopleMeet.com
          </td>
          <td>
            <img alt="!" src="<?php echo FRONT_SITE_URL ?>www/images/images1/animatedexclamation.gif">
          </td>
        </tr>
      </tbody></table>
  </div>
</div>


<div id="accountarea">
  <div class="greybgarea2 bgcolor-main">
    <h2>Edit Location</h2>
    <p>Update your information, click the Save button to save the information.</p>

    <form method="post" id="frmEditLocation">
      <input type="hidden" value="HTMLEditor" name="SkipCSSVerif">
      <input type="hidden" value="SaveLocation" name="LocationStep">
      <input type="hidden" value="AL" name="SelectedCountryCode">
      <input type="hidden" value="" name="ZipCode">
      <div id="accountsettingsinfoarea">
        <div class="accountinforow">
          <p><label for="City">City:</label></p>
          <input type="text" name="City" maxlength="25" id="City" class="inputtext bgcolor-input border-color-input">
        </div>
        <div class="accountinforow">
          <p><label for="StateProvince">State/Province:</label></p>
          <input type="text" name="StateProvince" maxlength="25" id="StateProvince" class="inputtext bgcolor-input border-color-input">
        </div>                
        <p class="clearfix">&nbsp;</p>
      </div>
      <div class="accountsettingsbtn" id="accountsettingssavebtn">
        <a title="Save" class="button_style" href="javascript:void(0);">Save</a>
      </div>
      <p class="clearfix">&nbsp;</p>
      <input type="hidden" name="ioBlackBox" id="ioBlackBox" value="<?php echo Yii::app()->request->csrfToken; ?>">
    </form>
  </div>
</div>
<script type="text/javascript">
                              $jq.namespace('PeopleMedia');
                              PeopleMedia.EditLocation = {
                                HasError: false,
                                SubmitOnEnter: function(e) {
                                  try {
                                    var key = e.charCode ? e.charCode : e.keyCode;
                                    if (key == 13) {
                                      $jq('#frmEditLocation').submit();
                                      return false;
                                    }
                                  } catch (ex) {
                                    PeopleMedia.Logger.LogExceptionWithDetail(ex, {method: "PeopleMedia.EditLocation.SubmitOnEnter"});
                                  }
                                  return true;
                                },
                                SetFocus: function() {
                                  try {
                                    if (!PeopleMedia.EditLocation.HasError) {
                                      $jq('#frmEditLocation input[type=text]:visible:enabled:first').focus().select();
                                    } else {
                                      $jq('#frmEditLocation .errorhide + div input[type=text]:visible:enabled:first').focus().select();
                                    }
                                  } catch (ex) {
                                    PeopleMedia.Logger.LogExceptionWithDetail(ex, {method: "PeopleMedia.EditLocation.SetFocus"});
                                  }
                                },
                                Initialize: function() {
                                  try {
                                    $jq('#frmEditLocation input[type=text]').keypress(function(e) {
                                      return PeopleMedia.EditLocation.SubmitOnEnter(e);
                                    });
                                    $jq("#accountsettingssavebtn a").click(function() {
                                      $jq('#frmEditLocation').submit();
                                      return false;
                                    });
                                    PeopleMedia.EditLocation.SetFocus();
                                  } catch (ex) {
                                    PeopleMedia.Logger.LogExceptionWithDetail(ex, {method: "PeopleMedia.EditLocation.Initialize"});
                                  }
                                }
                              };
$(document).ready(function(){
  PeopleMedia.EditLocation.Initialize();
});
                              $jq(document).ready(function() {
                                PeopleMedia.EditLocation.Initialize();
                              });
</script>
